
class dep{
  constructor(){
    this.depList = [];
  }
  add(element){
    this.depList.push(element);  
  }
  notify(){
    for (let i = 0; i< this.depList.length; i++) {
        this.depList(item)()
    }
    this.depList.length = 0
  }
}
export default dep